<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>上传文件首页</title>
    <%@ include file="/WEB-INF/commons/header.jsp" %>
</head>
<body>


<div class="layui-layout layui-layout-admin">
    <%@ include file="/WEB-INF/commons/navbar.jsp" %>
    <%@ include file="/WEB-INF/commons/menu.jsp" %>

    <div class="layui-body" style="background-color: #F6F6F6">
        <!-- 内容主体区域 -->
        <div style="padding: 15px;">
            <form action="${ctx}/user/upload" method="post" enctype="multipart/form-data">
                <div class="layui-inline">
                    <label class="layui-form-label">文件描述:</label>
                    <div class="layui-input-inline">
                        <input type="text" name="fileName" lay-verify="required|phone" autocomplete="on"
                               class="layui-input" required>
                    </div>
                </div>
                <br><br>
                <label class="layui-form-label">选择文件:</label>
                <input type="file" name="files" value="选择文件" class="layui-icon" required/><br><br><br>
                <label class="layui-form-label">
                    <button type="submit" class="layui-btn  layui-btn-radius"> 提交</button>
                </label>
            </form>
            <br>
            <%--  <a href="${ctx}/user/showAllFiles">查看所有文件</a>--%>
        </div>
    </div>
</div>

<script src="${ctx}/static/layui/layui.js"></script>


</body>
</html>
